package cn.tedu.springai.config;


import com.alibaba.dashscope.aigc.generation.Generation;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AiConfiguration {
    //generation 字段用来与AI服务进行交互，获取答案，并将答案通过服务器端事件（Server-Sent Events, SSE）流式地返回给前端
    @Bean
    public Generation generation() {
        return new Generation();
    }
}